package cn.framelife.rainbow.db.entity;

import java.util.HashSet;

/**
 * 用于过滤java.lang包下的import
 * 
 * @author 潘广伟 p_3er@qq.com  
 * @date 2013-12-24 下午5:05:29 
 * @param <E>
 */
public class ImportSet<E> extends HashSet<E>{
	private static final long serialVersionUID = -2124024610513100828L;

	public boolean add(E e){
		if(e != null && e.toString().startsWith("java.lang")){
			return false;
		}else{
			return super.add(e);
		}
	}
}
